﻿using System;
using System.Collections.Generic;
using CiStatus.CiStatusAddIn.Logic.Exceptions;
using CiStatus.CiStatusAddIn.Logic.PluginInterfaces;
using CiStatus.CiStatusAddIn.Logic.Status;

namespace CiStatus.CiStatusAddIn.Logic
{
    public class ExceptionPoller : ICiPoller
    {
        private readonly CreatePollerException _cpe;

        public ExceptionPoller(CreatePollerException cpe)
        {
            _cpe = cpe;
        }

        public IStatus CurrentStatus()
        {
            var details = new StatusDetails { Message = _cpe.Message };
            return new StatusBadSettings(details);
        }

        public void Connect() {}

    	public IDictionary<string, ICiPollerParameter> Parameters
    	{
    		get { throw new NotImplementedException(); }
    	}
    }
}